﻿/***************************************************
 * File name: WSCeCommerceDBContext.cs 
 * Author: Team A
 * Change Log: Please see SVN repository: http://test-project-drew1.googlecode.com/svn/trunk/
 * Date: December 2013
 * Description: See <summary> tab below
 * *************************************************/

using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Web;

using WSCeCommerce.Domain;

namespace WSCeCommerce.Helpers
{
    public class WSCeCommerceDBContext : DbContext
    
    {
        public WSCeCommerceDBContext() : base("DefaultConnection") 
        { Database.SetInitializer<WSCeCommerceDBContext>(null); }

      //  public DbSet<ItemCategories> ItemCategories { get; set; }
        public DbSet<Category> Categories { get; set; }
        public DbSet<Item> Items { get; set; }
        public DbSet<Address> Address { get; set; }

        //JOE
       // public DbSet<OrderDetail> OrderDetail { get; set; }
  
        public DbSet<UserAddress> UserAddress { get; set; }
 

        public DbSet<Sale> Sales { get; set; }
        public DbSet<SaleItem> SaleItems { get; set; }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            base.OnModelCreating(modelBuilder);

        } 
                  
    }
}